<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link rel="stylesheet" type="text/css" href="/css/plugins/layui/layui.css"/>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="flowLine:manage:add" type="button" class="btn btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>
						</div>
						<div class="columns pull-right col-xs-3 col-sm-2" role="group">
							<button shiro:hasPermission="flowLine:manage:wDian" class="btn btn-primary" onclick="wDian()">
								<i class="fa fa-print" aria-hidden="true"></i>导出新网点标签单
							</button>
							<button shiro:hasPermission="flowLine:manage:wDian" class="btn btn-primary" onclick="wDians()">
								<i class="fa fa-print" aria-hidden="true"></i>导出网点标签单
							</button>
						</div>

						<div class="columns pull-right col-xs-5 col-sm-2 " role="group">
							<button shiro:hasPermission="flowLine:manage:exportCarTotal" class="btn btn-scroll-up" onclick="exportCarTotalList()">
								<i class="fa fa-print" aria-hidden="true"></i>线路总数清单
							</button>
						</div>


						<div class="columns pull-right col-xs-5 col-sm-2 " role="group">
							<button shiro:hasPermission="flowLine:manage:exportProductCodes" class="btn btn-info" onclick="exportProductCodes()">
								<i class="fa fa-print" aria-hidden="true"></i>商品货号清单
							</button>
						</div>

						<div class="columns pull-left col-md-3 nopadding">
							<div class="col-md-5 nopadding">
								<input type="text" class=" form-control"
									   id="start" name="start" placeholder="清单生成开始时间"
									   style="background-color: #fff;" readonly="readonly"/>
							</div>
							<div class="col-md-1 nopadding">
								<label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">
									<i class="fa fa-exchange"></i>
								</label>
							</div>
							<div class="col-md-5 nopadding">
								<input type="text" class=" form-control"
									   id="end" name="end" placeholder="清单生成结束时间"
									   style="background-color: #fff;" readonly="readonly"/>
							</div>

						</div>
						<input type="hidden"  name="centreId" th:value="${centreId}" th:if="${flag} == '1'">
						<div class="columns pull-left col-md-2 nopadding" th:if="${flag} == '0'">
							<select data-placeholder="商户" class="form-control chosen-select" name="centreId" tabindex="2">
								<option value="">选择商户</option>
								<option th:each="item: ${centreList}" th:text="${item.name}" th:value="${item.centreId}"></option>
							</select>
						</div>


					</div>
					<table id="flowLineTable" data-mobile-responsive="true"></table>
				</div>
			</div>
		</div>

		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_shelf_h = 'hidden';
				var s_shp_h = 'hidden';
				var s_sanhuo_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="flowLine:manage:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="flowLine:manage:remove">
			<script type="text/javascript">
				s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="flowLine:manage:shelfList">
			<script type="text/javascript">
                s_shelf_h = '';
			</script>
		</div>

		<div shiro:hasPermission="flowLine:manage:shelfProduct">
			<script type="text/javascript">
                s_shp_h = '';
			</script>
		</div>

		<div shiro:hasPermission="flowLine:manage:sanhuo">
			<script type="text/javascript">
			    s_sanhuo_h = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/plugins/layui/layui.js"></script>
	<script type="text/javascript" src="/js/appjs/logistics/flowLine/manage.js"></script>
</body>
</html>